package com.yang.core.model;

import com.zhy.base.jpa.model.DefaultModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Created by baipan
 * Date: 2019/12/25 0025
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DynamicUpdate
@DynamicInsert
@Accessors(chain = true)
@Entity(name = "qb_product_image")
public class ProductImage extends DefaultModel {

    public ProductImage() {

    }

    public ProductImage(String proId) {
        this.proId = proId;
    }

    /**
     * 所属商品Id
     */
    @Column(name = "pro_id")
    private String proId;

    /**
     * 图片地址
     */
    @Column(name = "img_addr")
    private String imgAddr;
}
